//
//  FRQDownSuccessViewController.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/10/24.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "FRQDownSuccessViewController.h"
#import "DownSuccessViews.h"
#import "FRQResellerGalleryViewController.h"
@interface FRQDownSuccessViewController ()
@property (nonatomic,strong) DownSuccessViews *DownSuccessView;
@end

@implementation FRQDownSuccessViewController
- (DownSuccessViews *)DownSuccessView{
    if (nil==_DownSuccessView) {
        _DownSuccessView=skXibView(@"DownSuccessViews");
        [self.view addSubview:_DownSuccessView];
        [_DownSuccessView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(APP.statusBarHeight);
            make.bottom.mas_equalTo(self.mas_bottomLayoutGuide);
            make.right.left.mas_equalTo(0);
        }];
        @weakify(self)
        [[_DownSuccessView.btnSuccess rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
            @strongify(self)
            FRQResellerGalleryViewController *view=[[FRQResellerGalleryViewController alloc] init];
            view.walletBack=1;
            [self.navigationController pushViewController:view animated:YES];
        }];
    }
    return _DownSuccessView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.DownSuccessView.hidden=NO;
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
